<!DOCTYPE html>












  


<html class="theme-next gemini use-motion" lang="Chinese">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"/>
<meta name="theme-color" content="#222">












<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />






















<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=6.4.0" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=6.4.0">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=6.4.0">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=6.4.0">


  <link rel="mask-icon" href="/images/logo.svg?v=6.4.0" color="#222">









<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Gemini',
    version: '6.4.0',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: false,
    fastclick: false,
    lazyload: false,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>


  




  <meta name="description" content="想法在SAE搭建一个blog的想法由来已久，但是一直都没有实施，直到今年五月份开始在办公室研究WordPress，最后决定在SAE上面自己来搭建一套博客系统。把自己的一些文字和关于技术的成长经历放在上面，供自己，或者如果其他可以从这儿得到有用信息的人来逛一逛。 这一篇，就用来回顾一下搭建WordPress时候遇到的各种问题和解决办法吧，也可以作为一篇在SAE上搭建WordPress的教程吧。 先说">
<meta name="keywords" content="PHP,WordPress,SAE">
<meta property="og:type" content="article">
<meta property="og:title" content="来SAE搭一个WordPress博客吧~">
<meta property="og:url" content="http://blog.zhengzi.me/2015/12/31/e6-9d-a5sae-e6-90-ad-e4-b8-80-e4-b8-aawordpress-e5-8d-9a-e5-ae-a2-e5-90-a7/index.html">
<meta property="og:site_name" content="政子的博客">
<meta property="og:description" content="想法在SAE搭建一个blog的想法由来已久，但是一直都没有实施，直到今年五月份开始在办公室研究WordPress，最后决定在SAE上面自己来搭建一套博客系统。把自己的一些文字和关于技术的成长经历放在上面，供自己，或者如果其他可以从这儿得到有用信息的人来逛一逛。 这一篇，就用来回顾一下搭建WordPress时候遇到的各种问题和解决办法吧，也可以作为一篇在SAE上搭建WordPress的教程吧。 先说">
<meta property="og:locale" content="Chinese">
<meta property="og:updated_time" content="2018-08-21T09:49:42.773Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="来SAE搭一个WordPress博客吧~">
<meta name="twitter:description" content="想法在SAE搭建一个blog的想法由来已久，但是一直都没有实施，直到今年五月份开始在办公室研究WordPress，最后决定在SAE上面自己来搭建一套博客系统。把自己的一些文字和关于技术的成长经历放在上面，供自己，或者如果其他可以从这儿得到有用信息的人来逛一逛。 这一篇，就用来回顾一下搭建WordPress时候遇到的各种问题和解决办法吧，也可以作为一篇在SAE上搭建WordPress的教程吧。 先说">






  <link rel="canonical" href="http://blog.zhengzi.me/2015/12/31/e6-9d-a5sae-e6-90-ad-e4-b8-80-e4-b8-aawordpress-e5-8d-9a-e5-ae-a2-e5-90-a7/"/>



<script type="text/javascript" id="page.configurations">
  CONFIG.page = {
    sidebar: "",
  };
</script>

  <title>来SAE搭一个WordPress博客吧~ | 政子的博客</title>
  









  <noscript>
  <style type="text/css">
    .use-motion .motion-element,
    .use-motion .brand,
    .use-motion .menu-item,
    .sidebar-inner,
    .use-motion .post-block,
    .use-motion .pagination,
    .use-motion .comments,
    .use-motion .post-header,
    .use-motion .post-body,
    .use-motion .collection-title { opacity: initial; }

    .use-motion .logo,
    .use-motion .site-title,
    .use-motion .site-subtitle {
      opacity: initial;
      top: initial;
    }

    .use-motion {
      .logo-line-before i { left: initial; }
      .logo-line-after i { right: initial; }
    }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="Chinese">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">政子的博客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
    
      
        <p class="site-subtitle">强迫症|学习者|伪文青</p>
      
    
  </div>

  <div class="site-nav-toggle">
    <button aria-label="Toggle navigation bar">
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>



<nav class="site-nav">
  
    <ul id="menu" class="menu">
      
        
        
        
          
          <li class="menu-item menu-item-home">
    <a href="/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-home"></i> <br />Home</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-about">
    <a href="/about/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-user"></i> <br />About</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-tags">
    <a href="/tags/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />Tags</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-archives">
    <a href="/archives/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />Archives</a>
  </li>

      
      
    </ul>
  

  

  
</nav>



  



</div>
    </header>

    


    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          
            

          
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://blog.zhengzi.me/2015/12/31/e6-9d-a5sae-e6-90-ad-e4-b8-80-e4-b8-aawordpress-e5-8d-9a-e5-ae-a2-e5-90-a7/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Jason Bian">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="政子的博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">来SAE搭一个WordPress博客吧~
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">

            
            
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              

              
                
              

              <time title="Created: 2015-12-31 14:37:20" itemprop="dateCreated datePublished" datetime="2015-12-31T14:37:20+08:00">2015-12-31</time>
            

            
              

              
                
                <span class="post-meta-divider">|</span>
                

                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                
                  <span class="post-meta-item-text">Edited on</span>
                
                <time title="Modified: 2018-08-21 17:49:42" itemprop="dateModified" datetime="2018-08-21T17:49:42+08:00">2018-08-21</time>
              
            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">In</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/PHP/" itemprop="url" rel="index"><span itemprop="name">PHP</span></a></span>

                
                
                  , 
                
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/PHP/WordPress/" itemprop="url" rel="index"><span itemprop="name">WordPress</span></a></span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="想法"><a href="#想法" class="headerlink" title="想法"></a>想法</h2><p>在SAE搭建一个blog的想法由来已久，但是一直都没有实施，直到今年五月份开始在办公室研究WordPress，最后决定在SAE上面自己来搭建一套博客系统。把自己的一些文字和关于技术的成长经历放在上面，供自己，或者如果其他可以从这儿得到有用信息的人来逛一逛。 这一篇，就用来回顾一下搭建WordPress时候遇到的各种问题和解决办法吧，也可以作为一篇在SAE上搭建WordPress的教程吧。 先说一下为什么决定采用WP吧。首先是因为它的简单吸引了我，下载源码–&gt;改变一下数据库配置–&gt;网页上简单设置一下–&gt;开始使用。许多完全不懂代码的同学看了相关的文档也一定可以玩转起来的。再者，WP是开源的系统，我学习PHP有一段时间了，对它的代码比较熟悉，自己改动起来也十分方便。第三呢，就是界面非常的Modern，一向看脸的我一下子就被吸引过去了。但是，为什么就不自己来写一套博客系统呢？这个问题其实很纠结，很久之前，在北邮人团队培训的时候H酱的确在台上带着我们用了三个晚上写过一套论坛系统，我也尝试做了一些，但是当时技术水平很差，bug比较多，安全性也是问题，所以倒不如直接用WP图个方便，而且本来WP的可定制性就很高，自己也可以看着改一改，不如先写一套UI（也是一直没有开工）。日后有很闲时间再想着写一套自己的吧。</p>
<h2 id="环境搭建"><a href="#环境搭建" class="headerlink" title="环境搭建"></a>环境搭建</h2><h3 id="SAE-Begin"><a href="#SAE-Begin" class="headerlink" title="SAE Begin"></a>SAE Begin</h3><p>SAE是新浪推出的一款云服务，全名叫Sina App Engine，主要是用来跑一些Web Service，对PHP的支持尤其的好，而且如果计算量和访问量不大是免费的（如果量大的话，转移到阿里云和Azure上面也比较方便）。也作为国内第一款PAAS的产品，有了一些与GAE感觉（如果不是被墙，肯定首选GAE了）。除了速度略慢，没有什么大的缺点了。 废话不多说了。先来说说怎么开始使用吧。登录 <a href="http://sae.sina.com.cn/" target="_blank" rel="noopener">http://sae.sina.com.cn/</a> ，使用新浪微博账号登陆（没有微博账号的点击注册很轻松就可以注册一个）。登录之后，从控制台中选择”云应用 SAE），进入到SAE控制台页面。点击创建新应用，设置应用的二级域名，名称，输入验证码，选择开发语言（php7或者php5.6的空应用）即可。</p>
<h3 id="管理环境"><a href="#管理环境" class="headerlink" title="管理环境"></a>管理环境</h3><p>SAE的管理环境非常友好，在总览里面可以看见访问PV，消耗的云豆和防火墙拦截情况，还能邀请其他人和你一起编辑这个应用（前提是新浪微博），还可以绑定独立域名。 首先点击代码管理，因为只是自己在维护，所以SVN是一个不错的选择，所以选择svn进行代码管理。点击创建版本，将创建版本号为1的版本。(可能需要输入密码)。 现在，就可以使用SVN管理代码了，关于SVN在windows下的使用，可以参考<a href="http://www.sinacloud.com/doc/sae/tutorial/code-deploy.html#svn" target="_blank" rel="noopener">http://www.sinacloud.com/doc/sae/tutorial/code-deploy.html#svn</a> 。 因为WP还需要MySql数据库的支持，所以现在打开MySQL数据库的支持。点击数据库服务中的MySQL，选择免费的共享型MySQL，选择MyISAM，Mysql功能已经开启。 接下来再存储与CDN服务中打开Storage业务，点击新建Domain，输入wordpress作为名字，剩下默认（注意不要设为私有），再打开Memcache，使用默认容量即可。 至此，环境搭建全部完成。</p>
<h2 id="开始使用WordPress"><a href="#开始使用WordPress" class="headerlink" title="开始使用WordPress"></a>开始使用WordPress</h2><h3 id="下载WordPress"><a href="#下载WordPress" class="headerlink" title="下载WordPress"></a>下载WordPress</h3><p>打开网址 <a href="https://cn.wordpress.org/" target="_blank" rel="noopener">https://cn.wordpress.org/</a> ，下载最新版本的WordPress（国内可能因为访问不了google造成加载过慢），并且解压。</p>
<h3 id="上传代码"><a href="#上传代码" class="headerlink" title="上传代码"></a>上传代码</h3><p>使用SVN将代码上传到SAE中。</p>
<h3 id="调整配置文件"><a href="#调整配置文件" class="headerlink" title="调整配置文件"></a>调整配置文件</h3><p>将wordpress目录中的wp-config-sample.php文件复制为wp-config.php，并且编辑之。 修改内容：</p>
<p>/** WordPress数据库的名称 */</p>
<p>define(‘DB_NAME’, SAE_MYSQL_DB);</p>
<p>/** MySQL数据库用户名 */</p>
<p>define(‘DB_USER’, SAE_MYSQL_USER);</p>
<p>/** MySQL数据库密码 */</p>
<p>define(‘DB_PASSWORD’, SAE_MYSQL_PASS);</p>
<p>/** MySQL主机 */</p>
<p>define(‘DB_HOST’, SAE_MYSQL_HOST_M.’:’.SAE_MYSQL_PORT)</p>
<h3 id="设置账户"><a href="#设置账户" class="headerlink" title="设置账户"></a>设置账户</h3><p>访问接下来Wordpress，设置用户名密码，就可以进入到WordPress中。</p>
<h2 id="注意事项"><a href="#注意事项" class="headerlink" title="注意事项"></a>注意事项</h2><p>SAE中PHP没有写入目录文件的权限，所以 1.安装插件需要先下载到本地，然后使用SVN上传，在进行配置 2.上传照片需要交给storage来进行</p>
<h2 id="在SAE中使用Storage"><a href="#在SAE中使用Storage" class="headerlink" title="在SAE中使用Storage"></a>在SAE中使用Storage</h2><h3 id="创建文件sae-php"><a href="#创建文件sae-php" class="headerlink" title="创建文件sae.php"></a>创建文件sae.php</h3><p>在代码版本的根目录(注：不是应用目录)下创建文件sae.php，源码如下：</p>
<p>&lt;?php</p>
<p>/* 在SAE的Storage中新建的Domain名，比如”wordpress” */</p>
<p>define ( ‘SAE_STORAGE’, wordpress );</p>
<p>/* 设置文件上传的路径和文件路径的URL，不要更改 */</p>
<p>define ( ‘SAE_DIR’, ‘saestor://‘ . SAE_STORAGE . ‘/uploads’ );</p>
<p>define ( ‘SAE_URL’, ‘http://‘ . $_SERVER [‘HTTP_APPNAME’] . ‘-‘ . SAE_STORAGE . ‘.stor.sinaapp.com/uploads’ );</p>
<p>?&gt;</p>
<h3 id="修改wp-includes-functions-php文件"><a href="#修改wp-includes-functions-php文件" class="headerlink" title="修改wp-includes/functions.php文件"></a>修改wp-includes/functions.php文件</h3><p>/*** Step 1： include sae.php　***/</p>
<p>include( ABSPATH . ‘/sae.php’ );      //添加这一行。调用SAE的Storage文件域名设置</p>
<p>require( ABSPATH . WPINC . ‘/option.php’ );</p>
<p>前添加</p>
<p>/*** Step 2: 替换代码　***/</p>
<p>/*    </p>
<p>$wrapper = null;</p>
<p>// Strip the protocol.</p>
<p>if (wp_is_stream ( $target )) {</p>
<pre><code>list ( $wrapper, $target ) = explode ( &apos;://&apos;, $target, 2 );
</code></pre><p>}</p>
<p>// From php.net/mkdir user contributed notes.</p>
<p>$target = str_replace ( ‘//‘, ‘/‘, $target );</p>
<p>// Put the wrapper back on the target.</p>
<p>if ($wrapper !== null) {</p>
<pre><code>$target = $wrapper . &apos;://&apos; . $target;
</code></pre><p>}</p>
<p>*/</p>
<p>//替换为以下代码</p>
<p>// from php.net/mkdir user contributed notes</p>
<p>if (substr ( $target, 0, 10 ) == ‘saestor://‘) {</p>
<pre><code>return true;
</code></pre><p>}</p>
<p>$target = str_replace ( ‘//‘, ‘/‘, $target );</p>
<p>/*** Step 3: 添加代码　***/</p>
<p>$dir = SAE_DIR; //添加这一行</p>
<p>$url = SAE_URL; //添加这一行</p>
<p>$basedir = $dir;</p>
<p>/*** Step 4: 添加代码　***/</p>
<p>//添加如下代码块</p>
<p>if ( !function_exists(‘utf8_encode’) ) {</p>
<pre><code>function utf8_encode($str) {

    $encoding\_in = mb\_detect_encoding($str);

    return mb\_convert\_encoding($str, &apos;UTF-8&apos;, $encoding_in);

}
</code></pre><p>}</p>
<p>//在这前面添加上述代码</p>
<p>/**</p>
<p> * Send a HTTP header to limit rendering of pages to same origin iframes.</p>
<p> *</p>
<p> * @since 3.1.3</p>
<p> *</p>
<p> * @see <a href="https://developer.mozilla.org/en/the\_x-frame-options\_response_header" target="_blank" rel="noopener">https://developer.mozilla.org/en/the\_x-frame-options\_response_header</a></p>
<p> */</p>
<h3 id="修改wp-admin-includes-file-php"><a href="#修改wp-admin-includes-file-php" class="headerlink" title="修改wp-admin/includes/file.php"></a>修改wp-admin/includes/file.php</h3><p>/*** 注释如下代码 ***/</p>
<p>// Set correct file permissions.</p>
<p>$stat = stat ( dirname ( $new_file ) );</p>
<p>$perms = $stat [‘mode’] &amp; 0000666;</p>
<p>@ chmod ( $new_file, $perms );</p>
<h3 id="下载uploads内容"><a href="#下载uploads内容" class="headerlink" title="下载uploads内容"></a>下载uploads内容</h3><p>参考SAE的官方文档即可 <a href="http://www.sinacloud.com/doc/sae/php/storage.html#windowsmac" target="_blank" rel="noopener">http://www.sinacloud.com/doc/sae/php/storage.html#windowsmac</a> 参考内容： <a href="http://sparkandshine.net/build-wordpress-blogs-on-sina-cloud-solve-uploads-directory-permissions/" target="_blank" rel="noopener">http://sparkandshine.net/build-wordpress-blogs-on-sina-cloud-solve-uploads-directory-permissions/</a></p>

      
    </div>

    

    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/PHP/" rel="tag"># PHP</a>
          
            <a href="/tags/WordPress/" rel="tag"># WordPress</a>
          
            <a href="/tags/SAE/" rel="tag"># SAE</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2015/12/29/e4-b8-80-e5-b9-b4-e4-b8-80-e6-a2-a6-ef-bc-8c-e4-b8-80-e6-9c-9f-e4-b8-80-e4-bc-9a/" rel="next" title="一年一梦，一期一会">
                <i class="fa fa-chevron-left"></i> 一年一梦，一期一会
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2016/01/16/e6-9c-9f-e6-9c-ab-e6-9d-82-e8-ae-b0/" rel="prev" title="期末杂记">
                期末杂记 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>


  </div>


          </div>
          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            Table of Contents
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            Overview
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="/images/avatar.jpg"
                alt="Jason Bian" />
            
              <p class="site-author-name" itemprop="name">Jason Bian</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          
            <nav class="site-state motion-element">
              
                <div class="site-state-item site-state-posts">
                
                  <a href="/archives/">
                
                    <span class="site-state-item-count">86</span>
                    <span class="site-state-item-name">posts</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-categories">
                  
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">41</span>
                    <span class="site-state-item-name">categories</span>
                  
                </div>
              

              
                
                
                <div class="site-state-item site-state-tags">
                  
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">109</span>
                    <span class="site-state-item-name">tags</span>
                  
                </div>
              
            </nav>
          

          

          

          
          

          
          

          
            
          
          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#想法"><span class="nav-number">1.</span> <span class="nav-text">想法</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#环境搭建"><span class="nav-number">2.</span> <span class="nav-text">环境搭建</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#SAE-Begin"><span class="nav-number">2.1.</span> <span class="nav-text">SAE Begin</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#管理环境"><span class="nav-number">2.2.</span> <span class="nav-text">管理环境</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#开始使用WordPress"><span class="nav-number">3.</span> <span class="nav-text">开始使用WordPress</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#下载WordPress"><span class="nav-number">3.1.</span> <span class="nav-text">下载WordPress</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#上传代码"><span class="nav-number">3.2.</span> <span class="nav-text">上传代码</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#调整配置文件"><span class="nav-number">3.3.</span> <span class="nav-text">调整配置文件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#设置账户"><span class="nav-number">3.4.</span> <span class="nav-text">设置账户</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#注意事项"><span class="nav-number">4.</span> <span class="nav-text">注意事项</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#在SAE中使用Storage"><span class="nav-number">5.</span> <span class="nav-text">在SAE中使用Storage</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#创建文件sae-php"><span class="nav-number">5.1.</span> <span class="nav-text">创建文件sae.php</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#修改wp-includes-functions-php文件"><span class="nav-number">5.2.</span> <span class="nav-text">修改wp-includes/functions.php文件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#修改wp-admin-includes-file-php"><span class="nav-number">5.3.</span> <span class="nav-text">修改wp-admin/includes/file.php</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#下载uploads内容"><span class="nav-number">5.4.</span> <span class="nav-text">下载uploads内容</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2018</span>
  <span class="with-love" id="animate">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Jason Bian</span>

  

  
</div>




  <div class="powered-by">Powered by <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a></div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">Theme – <a class="theme-link" target="_blank" href="https://theme-next.org">NexT.Gemini</a></div>




        








        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    
	
    

    
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>


























  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=6.4.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=6.4.0"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=6.4.0"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=6.4.0"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=6.4.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=6.4.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=6.4.0"></script>



  



  










  





  

  

  

  

  
  

  

  

  

  

  

</body>
</html>
